<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div class="col-md-12">
            <!--查询条件-->
            <form class="form-horizontal" ng-show="showMoreSearch">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>{{'查询' | dyLanguage}}</strong></h3>
                        <ul class="panel-controls">
                            <li><a href="javascript:void(0)" class="panel-remove"><span class="fa fa-times"></span></a></li>
                        </ul>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="col-md-3 control-label">{{'名称' | dyLanguage}}</label>

                                    <div class="col-md-9">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                            <input type="text" class="form-control" ng-model="queryPara.query.badgeName.value"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6" ng-show="user.roleCode == 'ROLE_ORGANIZATION_SERVICE'">
                                <div class="form-group">
                                    <label class="col-md-3 control-label">{{'厂别' | dyLanguage}}</label>

                                    <div class="col-md-9">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                            <input type="text" class="form-control" ng-model="queryPara.query.companyCode.value"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-primary" ng-click="query(1)"><i class="fa fa-search"></i>{{'查询' | dyLanguage}}</button>
                    </div>
                </div>
            </form>
            <!--end 查询条件-->

            <!-- START TABLE HOVER ROWS -->
            <div class="panel panel-default">
                <div class="panel-heading x-navigation x-navigation-horizontal x-navigation-panel">
                    <div class="panel-title-box" style="width: 30%">
                        <h3 class="panel-title"><strong>{{'查询结果：' | dyLanguage}}</strong></h3>
                    </div>
                    <div class="search-div">
                        <ul class="panel-controls panel-controls-title">
                            <li class="top-panel-controls">
                                <button ng-show="!showMoreSearch" class="btn btn-primary" ng-click="showMoreSearchFun(true)"><i class="fa fa-search"></i>{{'更多筛选' | dyLanguage}}</button>
                                <button ng-show="showMoreSearch" class="btn btn-primary" ng-click="showMoreSearchFun(false)"><i class="fa fa-eye"></i>{{'隐藏更多筛选' | dyLanguage}}</button>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="panel-body table-responsive">
                    <p style="float: left;">{{'本次查询共查询到' | dyLanguage}}{{pagination.length}}{{'条记录。' | dyLanguage}}</p>
                    <cm-pagination ng-model="pagination" ng-show="pagination.length > 0"></cm-pagination>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>{{'徽章名称' | dyLanguage}}</th>
                            <th>{{'获得者' | dyLanguage}}</th>
                            <th ng-show="user.roleCode == 'ROLE_ORGANIZATION_SERVICE'">{{'获得者厂别' | dyLanguage}}</th>
                            <th>{{'获得时间' | dyLanguage}}</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr style="word-wrap:break-word;word-break: break-all;" ng-repeat="record in queryResult.datas">
                            <td>{{record.badge.name}}</td>
                            <td>{{record.user.nickName}}</td>
                            <td ng-show="user.roleCode == 'ROLE_ORGANIZATION_SERVICE'">{{record.user.organizationClient.name}}</td>
                            <td ng-bind="record.createDate.toDate()"></td>
                        </tr>
                        </tbody>
                    </table>
                    <cm-pagination ng-model="pagination" ng-show="pagination.length > 0"></cm-pagination>
                </div>
            </div>
            <!-- END TABLE HOVER ROWS -->

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->